Telegram Group & Telegram Channel
#معلومة سريعة

عندما تقوم بمقارنة النصوص string في السي شارب فإن عملية المقارنة تكون حساسة لحالة الاحرف حتى وان كنت تقوم بمقارنة متغيرين لهما نفس الكلمة مع اختلاف في حالة الحروف سوف تكون نتيجة المقارنة false

مثلاً

string a="abc";
string b="ABC";

if(a==b)
print("true");

else
print("false");

حتى لو استخدمت الطريقة التالية للمقارنة
if(a.Equals(b))

في كلا الطريقتين لن يتحقق الشرط وسيطبع false

لاكن اذا اردت المقارنة بغض النظر عن حالة الاحرف نستخدم معداد
StringComparison

ستكون عملية المقارنة كما يلي

if(a.Equals(b,StringComparison.OrdinalIgnoreCase))



tg-me.com/CsharpWindowsForm/447
Create:
Last Update:

#معلومة سريعة

عندما تقوم بمقارنة النصوص string في السي شارب فإن عملية المقارنة تكون حساسة لحالة الاحرف حتى وان كنت تقوم بمقارنة متغيرين لهما نفس الكلمة مع اختلاف في حالة الحروف سوف تكون نتيجة المقارنة false

مثلاً

string a="abc";
string b="ABC";

if(a==b)
print("true");

else
print("false");

حتى لو استخدمت الطريقة التالية للمقارنة
if(a.Equals(b))

في كلا الطريقتين لن يتحقق الشرط وسيطبع false

لاكن اذا اردت المقارنة بغض النظر عن حالة الاحرف نستخدم معداد
StringComparison

ستكون عملية المقارنة كما يلي

if(a.Equals(b,StringComparison.OrdinalIgnoreCase))

BY برمجة تطبيقات الويندوز C# Programming


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/CsharpWindowsForm/447

View MORE
Open in Telegram


برمجة تطبيقات الويندوز C Programming Telegram | DID YOU KNOW?

Date: |

However, analysts are positive on the stock now. “We have seen a huge downside movement in the stock due to the central electricity regulatory commission’s (CERC) order that seems to be negative from 2014-15 onwards but we cannot take a linear negative view on the stock and further downside movement on the stock is unlikely. Currently stock is underpriced. Investors can bet on it for a longer horizon," said Vivek Gupta, director research at CapitalVia Global Research.

The seemingly negative pandemic effects and resource/product shortages are encouraging and allowing organizations to innovate and change.The news of cash-rich organizations getting ready for the post-Covid growth economy is a sign of more than capital spending plans. Cash provides a cushion for risk-taking and a tool for growth.

برمجة تطبيقات الويندوز C Programming from sg


Telegram برمجة تطبيقات الويندوز C# Programming
FROM USA